package com.sys.menu.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sys.menu.entity.SysMenu;
import com.sys.menu.view.SysMenuView;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author djianfeng
 * @since 2018-07-24
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> selectMenuByUserId(Long userId);

    List<String> selectCodeByUserId(Long userId);

    List<SysMenuView> getSysMenuViews(Page<SysMenuView> page, SysMenuView view);
}